]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Fix suggestions box
authorJia Chao <jiachao2130@126.com>
Tue, 13 Apr 2021 02:07:54 +0000 (10:07 +0800)
committerMarge Bot <marge-bot@gnome.org>
Tue, 13 Apr 2021 10:02:09 +0000 (10:02 +0000)
The suggestions box actor was not being correctly populated.
Make it correctly use the St.BoxLayout add_child() method.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3422
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2965
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1806>

js/ui/keyboard.js

index 866382e4fe1dedef34bc43560a3b412aafaee26d..10a21cbe07759d2ca07203cf1bfbb78b03e0f824 100644 (file)
@@ -198,7 +198,7 @@ class Suggestions extends St.BoxLayout {
     add(word, callback) {
         let button = new St.Button({ label: word });
         button.connect('clicked', callback);
-        this.add(button);
+        this.add_child(button);
     }
 
     clear() {